package org.example.myleet.p566;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(Assert.isPass(new int[][]{{1,2,3,4}}, solution.matrixReshape(new int[][]{{1,2},{3,4}}, 1, 4)));
        Assert.isTrue(Assert.isPass(new int[][]{{1,2,3},{4,5,6}}, solution.matrixReshape(new int[][]{{1,2},{3,4},{5,6}}, 2, 3)));
        Assert.isTrue(Assert.isPass(new int[][]{{1,2},{3,4},{5,6}}, solution.matrixReshape(new int[][]{{1,2,3},{4,5,6}}, 3, 2)));
        Assert.isTrue(Assert.isPass(new int[][]{{1,2},{3,4}}, solution.matrixReshape(new int[][]{{1,2},{3,4}}, 2, 4)));
    }
}
